package util;

import java.io.BufferedReader;
import java.io.FileReader;

public class LerArquivo {
	public String carregarPrograma(String arquivo){
		String auxString = "";
		try {
			BufferedReader reader = new BufferedReader(new FileReader(arquivo));
			String linha;
			while ((linha = reader.readLine()) != null) {
				auxString = auxString + " " + linha;
			}
			reader.close();
		} catch (Exception e) {
			e.printStackTrace();
		}
		/*
		System.out.println("O programa:");
		System.out.println("");
		System.out.println(auxString);*/
		return auxString;
	}
}
